import React, {useRef} from 'react';
import {Table} from 'antd';
import './index.less';

function Index(props) {
    const elem = useRef();
    // const size = useSize(elem.current?.parentElement);
    return (
        <div ref={elem} style={{height: '100%'}}>
            <Table
                className="out-table"
                rowClassName="out-table-row"
                pagination={false}
                rowKey={() => Math.random()}
                // scroll={{
                //   y: `calc(${size.height}px - ${props.scrollOut || '40px'})`,
                // }}
                {...props}
            />
        </div>
    );
}

export default Index;
